<?php
class model_PhotoModel {
    private $id;
    private $owner;
    private $title;
    private $name;

    public function  __construct($row = null) {
        if (null != $row){
        $this->setId($row['id'])
                ->setOwner($row['owner'])
                ->setTitle($row['title'])
                ->setName($row['name']);
        }
    }
    
    public  function getId() {
        return $this->id;
    }

    public  function setId($id) {
        $this->id = $id;
        return $this;
    }

    public function getOwner() {
        return $this->owner;
    }

    public function setOwner($owner) {
        $this->owner = $owner;
        return $this;
    }

    public function getTitle() {
        return $this->title;
    }

    public function setTitle($title) {
        $this->title = $title;
        return $this;
    }

    public function getName() {
        return $this->name;
    }

    public function setName($name) {
        $this->name = $name;
        return $this;
    }
}